/*
 * Created on Jul 14, 2005
 *
 */
package com.erclab.internal.xpresso.reports;

import java.util.HashMap;

import com.erclab.internal.xpresso.dataAccess.Query;

/**
 * @author Enrique Rodriguez.
 *
 */
public abstract class ReportFilter {

	protected String idFilter;
	protected String classHandler;
	protected String columnToFilter;
	protected String label;
	protected String parameters;
	protected int lookupDataSourceId;
	protected String lookupQuery;
	protected String style;
	protected String flexClass;
		
	public abstract void applyFilterToQuery(Query query, HashMap conditions);
	public abstract String conditionTypesToHTML(Report theReport);
	public abstract String filterBoxToHTML(Report theReport);

	/**
	 * @return
	 */
	public String getClassHandler() {
		return classHandler;
	}

	/**
	 * @return
	 */
	public String getIdFilter() {
		return idFilter;
	}

	/**
	 * @param string
	 */
	public void setClassHandler(String string) {
		classHandler = string;
	}

	/**
	 * @param string
	 */
	public void setIdFilter(String string) {
		idFilter = string;
	}

	/**
	 * @return
	 */
	public String getColumnToFilter() {
		return columnToFilter;
	}

	/**
	 * @param string
	 */
	public void setColumnToFilter(String string) {
		columnToFilter = string;
	}

	/**
	 * @return
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param string
	 */
	public void setLabel(String string) {
		label = string;
	}

	/**
	 * @return
	 */
	public String getParameters() {
		return parameters;
	}

	/**
	 * @param string
	 */
	public void setParameters(String string) {
		parameters = string;
	}

	/**
	 * @return
	 */
	public int getLookupDataSourceId() {
		return lookupDataSourceId;
	}

	/**
	 * @return
	 */
	public String getLookupQuery() {
		return lookupQuery;
	}

	/**
	 * @param i
	 */
	public void setLookupDataSourceId(int i) {
		lookupDataSourceId = i;
	}

	/**
	 * @param string
	 */
	public void setLookupQuery(String string) {
		lookupQuery = string;
	}

	/**
	 * @return
	 */
	public String getStyle() {
		return style;
	}

	/**
	 * @param string
	 */
	public void setStyle(String string) {
		style = string;
	}
	public String getFlexClass() {
		return flexClass;
	}
	public void setFlexClass(String flexClass) {
		this.flexClass = flexClass;
	}

}
